<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<script type="text/javascript">
var orgSetting = {	
		view: {
			nameIsHTML: true,
			fontCss: getFont//,
			//selectedMulti : true
		},
		data: {
			simpleData: {
				enable: true
			}
		},
		
		check : {
			enable : false,
		}
		
};
function getFont(treeId, node) {
	if(node.searchHit == true){
		return {'color':'#f79263'};
	}else if(node.ifdel == '8'){
		return {'color':'#999'};
	}else if(node.ifdel == '1'){
		return {'color':'#000'};
	}else{
		return {};
	}
}
var orgTreeObj;
var zOrgNodes =${menus};
$(function(){
	orgTreeObj = $.fn.zTree.init($("#zMenuTree"), orgSetting, zOrgNodes);
});
</script>
 <div class="row">
	<div class="col-xs-12">
		<div class="widget-box">
			<div class="widget-body">
				<div class="widget-main">
					<div class="row mg-top12" style="overflow:auto; height: 400px">
						<div id="zMenuTree" class="ztree"></div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div> 

<div class="modal-footer wizard-actions">
	<button class="btn btn-danger btn-sm pull-left" data-dismiss="modal">
		<i class="icon-remove"></i> 关闭
	</button>
</div>
